package com.reformer.commons.mybatis;

/**
 * mybatiswhere查询用的基础条件
 *
 * @author sdc
 */
public abstract class BaseExample {

    protected String fields;

    protected String orderByClause;

    protected boolean distinct;

    protected int skip;

    protected int limit;

    public String getFields() {
        return fields;
    }

    public void setFields(String fields) {
        this.fields = fields;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public BaseExample setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
        return this;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public BaseExample setDistinct(boolean distinct) {
        this.distinct = distinct;
        return this;
    }

    public int getSkip() {
        return skip;
    }

    public BaseExample setSkip(int skip) {
        this.skip = skip;
        return this;
    }

    public int getLimit() {
        return limit;
    }

    public BaseExample setLimit(int limit) {
        this.limit = limit;
        return this;
    }

}
